package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/6 15:31
 * @Description:
 */
@Table("coachinfo")
public class CoachInfo {
    @PrimaryKey(value = "coachid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer coachid;
    @Column(column = "coachname",columnType = ColumnType.STRING,IsNull = true,columnSize = 50)
    private String coachname;
    @Column(column = "sex",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String sex;
    @Column(column = "coachlevel",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String coachlevel;
    @Column(column = "coachage",columnType = ColumnType.INT,IsNull = true)
    private Integer coachage;
    @Column(column = "telephone",columnType = ColumnType.STRING,IsNull = false,columnSize = 11)
    private String telephone;
    @Column(column = "starttime",columnType = ColumnType.DATE,IsNull = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date starttime;
    @Column(column = "endtime",columnType = ColumnType.DATE,IsNull = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endtime;
    @Column(column = "validflag",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String validflag;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Column(column = "addtime",columnType = ColumnType.DATE,IsNull = true)
    private Date addtime;
    @Column(column = "addid",columnType = ColumnType.INT,IsNull = true)
    private Integer addid;

    public Integer getCoachid() {
        return coachid;
    }

    public void setCoachid(Integer coachid) {
        this.coachid = coachid;
    }

    public String getCoachname() {
        return coachname;
    }

    public void setCoachname(String coachname) {
        this.coachname = coachname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCoachlevel() {
        return coachlevel;
    }

    public void setCoachlevel(String coachlevel) {
        this.coachlevel = coachlevel;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getValidflag() {
        return validflag;
    }

    public void setValidflag(String validflag) {
        this.validflag = validflag;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Integer getAddid() {
        return addid;
    }

    public void setAddid(Integer addid) {
        this.addid = addid;
    }

    public Integer getCoachage() {
        return coachage;
    }

    public void setCoachage(Integer coachage) {
        this.coachage = coachage;
    }
}
